package org.neuedu.chapter05_0618;

public class MethodDemo07 {

    public static void main(String[] args) {
        String s = panDuan(1999);
        System.out.println(s);
    }

    public static String panDuan(int year) {
        if (year % 4 == 0 && year % 100 != 0 || year % 400 == 0) {
            return "闰年";
        }
        return "平年";
    }
}
